package com.soulkun.smarthome.logic.annotation

/**
 * 数字签名验证注解
 */
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.CLASS)
@Retention(AnnotationRetention.RUNTIME)
annotation class Signature(
    val sort: String = ALPHA_SORT, val splice: String = DEFAULT_SPLICE
) {
    companion object {
        const val ORDER_SORT = "ORDER_SORT" //按照order值排序
        const val ALPHA_SORT = "ALPHA_SORT" //字典序排序
        const val ANNOTATION_SPLICE = "ANNOTATION_SPLICE" //按注解方式拼接
        const val DEFAULT_SPLICE = "DEFAULT_SPLICE" //按默认方式拼接
    }
}